package com.scsj.supermarket.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scsj.supermarket.R;
import com.scsj.supermarket.bean.GeneralizeMembersBean;

import java.util.List;

/**
 * 推广成员
 */
public class GeneralizeMembersAdapter extends BaseQuickAdapter<GeneralizeMembersBean,BaseViewHolder>{

    public GeneralizeMembersAdapter(List data) {
        super(R.layout.item_generalize_members, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GeneralizeMembersBean item) {
        helper.setImageResource(R.id.head_iv,item.getImg());
        helper.setText(R.id.phone_tv,item.getPhoneNumber());
        helper.setText(R.id.time_tv,item.getDate());
    }
}
